setPtime

public void setPtime(int ptime)

Sets the Ptime value which will change the ptime configuration of Opus codec. Ptime is the preferred duration of media represented by a packet that a decoder wants to receive, in milliseconds rounded up to the next full integer value. For Opus, possible values are 3, 5, 10, 20, 40, 60, or an arbitrary multiple of frame size rounded up to the next full integer value, up to a maximum value of 120. If no value is specified, the default is 20. Changing ptime effects all audio codecs. Increasing Ptime will cause less bandwidth usage. (For further information check RFC-7587).

MobileSDK default ptime=60

3 <= MaxAverageBitRate <= 120 and it should be multiple of an Opus frame size rounded up to the next full integer value In case this value set as -1 WebRTC defaults will be use.

Since

4.2.4

Parameters

ptime

Ptime value as an integer